﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<MensUnoShop.Models.Order>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>OrderDetailView</title>
    <link href="/Content/Admin/c/style.css" rel="stylesheet" type="text/css" />
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/Scripts/superfish.js"></script>
	<script type="text/javascript" src="/Scripts/tooltip.js"></script>
	<script type="text/javascript" src="/Scripts/cookie.js"></script>
    <script type="text/javascript" src="/Scripts/custom.js"></script>
</head>
<body>
    <div class="hastable">
<%if (Model != null)
      {%>
    <table cellspacing="0">
        <thead>
        <tr>            
            <td>產品序號</td>
            <td>品名</td>
            <td>單價</td>
            <td>購買數量</td>
            <td>總價</td>
            <td>產品圖</td>
        </tr>
        </thead>
        <tbody>
        <%foreach (var item in Model.MLIST.OrderBy(m=>m.COMBOID).ThenByDescending(m=>m.PRICE))
          {%>
        <tr>            
            <td><%:item.SN %></td>
            <td><%:item.TITLE %></td>
            <td><%:item.SINGLEPRICE %></td>
            <td><%:item.AMOUNT %></td>
            <td><%:item.PRICE %></td>
            <td><%if(!string.IsNullOrEmpty(item.IMG)){ %><img src="<%:item.IMG %>" width="60" height="60" /><%} %></td>
        </tr>
        <%} %>
        </tbody>
        

        <%--<tr>
            <td>帳號(E-Mail)</td>
            <td><%:Model.EMAIL%></td>
        </tr>
        <tr>
            <td>姓名</td>
            <td><%:Model.FIRSTNAME%> <%:Model.LASTNAME%></td>
        </tr>
        <tr>
            <td>性別</td>
            <td><%if (Model.SEX)
                  {%>男<% }
                  else
                  {%>女<% }%></td>
        </tr>
        <tr>
            <td>生日</td>
            <td><%:Model.BIRTH%></td>
        </tr>
        <tr>
            <td>電話(O)</td>
            <td><%:Model.TELO%></td>
        </tr>
        <tr>
            <td>電話(H)</td>
            <td><%:Model.TELH%></td>
        </tr>
        <tr>
            <td>行動電話</td>
            <td><%:Model.MOBILE%></td>
        </tr>
        <tr>
            <td>婚姻</td>
            <td><%if (Model.ISMARRIED)
                  {%>已婚<% }
                  else
                  {%>未婚<% }%></td>
        </tr>
        <tr>
            <td>學歷</td>
            <td><%:Model.EDU%></td>
        </tr>
        <tr>
            <td>職業</td>
            <td><%:Model.JOB%></td>
        </tr>
        <tr>
            <td>收入</td>
            <td><%:Model.INCOME%></td>
        </tr>
        <tr>
            <td>國籍</td>
            <td><%:Model.COUNTRY%></td>
        </tr>
        <tr>
            <td>地址</td>
            <td><%:Model.ZIP%><%:Model.CITY%><%:Model.ADDRESS%><%:Model.ADDRESS%></td>
        </tr>    --%>
    </table>
    <%}%>
    </div>
</body>
</html>
